What Build and run actually does, and how a compile error in your GBML finds its way back to the exact line that caused it.
Ctrl+B (or F5, which works from anywhere in the editor - see The Code tab) saves the project, checks every object and script, generates the build tree, stages assets, runs the real build, and launches the result in your configured emulator - the same Build drawer the toolbar's ▶ Build & Play opens, covered from the tool's own side by the Help Center's Build & Play topic. This is a real compiler running, not a stand-in: the same pipeline python tools/gbabel_build.py runs from a terminal, wired to the actual GBML compiler.
Build & Play makes a Development Build: the game's safety checks are on, so it stops with a plain message when something breaks a rule. For the version you give to players, open Build options ▾ (right beside Build & Play) and choose Release Build & play. Development Build and Release Build explains the two and when to use each.
A compile problem appears in the Problems list with its file and line, and clicking one opens that exact spot - or, when the event is showing as Blocks, selects the block that covers that line instead (see Blocks and code). This works the same way whether the problem came from your own GBML or from the C++ stage underneath it:
.gbml file and line directly.The same strip that shows Problems also shows the open room's own sprite, palette and pool readings, so you can see a room creeping toward a hardware limit without leaving the Code tab to go check. The full ROM report - what was actually included in the build and why - is one click away; see What goes into the ROM.